//
//  String+Emoji.swift
//  表情键盘
//
//  Created by 孙明海 on 16/2/17.
//  Copyright © 2016年 孙明海. All rights reserved.
//

import Foundation

extension String {
    var emoji: String {
        let scanner = NSScanner(string: self)
        var value: UInt32 = 0
        scanner.scanHexInt(&value)
        let char = Character(UnicodeScalar(value))
        
        return "\(char)"
    }
}